﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserModels;
using UserRepositorys.Intface;

namespace UserRepositorys.Impl
{
    public class DeptRepository : Repository<DeptInfoModel>, IDeptRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="db"></param>
        public DeptRepository(ISqlSugarClient db) : base(db)
        {
        }

        /// <summary>
        /// 所有部门信息
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public async Task<List<DeptInfoModel>> GetDeptList()
        {
            return await base.GetAllasync();
        }
    }
}
